package com.example.project7.viewmodel;

public abstract class AutoLoginState {
    private AutoLoginState() {}

    public static class Loading extends AutoLoginState {
        @Override
        public String toString() {
            return "AutoLoginState.Loading";
        }
    }

    public static class Success extends AutoLoginState {
        @Override
        public String toString() {
            return "AutoLoginState.Success";
        }
    }

    public static class Error extends AutoLoginState {
        private String errorMessage;

        public Error(String errorMessage) {
            this.errorMessage = errorMessage;
        }

        public String getErrorMessage() {
            return errorMessage;
        }

        @Override
        public String toString() {
            return "AutoLoginState.Error: " + errorMessage;
        }
    }

    public static class NotEnabled extends AutoLoginState {
        @Override
        public String toString() {
            return "AutoLoginState.NotEnabled";
        }
    }
}